Availability | 2.0 | ||||
Description | Gets a list of the contents of the specified folder. | ||||
Arguments | folderURL, {constraint} |
||||
|
|||||
Returns | An array of strings representing the contents of the folder. | ||||
Example | The following code gets a list of all the text (.txt) files in the temp folder and displays the list in an alert box. | ||||
![]() |
var folderURL = "file:///c|/temp"; var fileMask = "*.txt"; var list = listFolder(folderURL + "/" + fileMask, "files"); if (list){ alert(folderURL + " contains: " + list.join("\n")); } |
|
![]() |